const genratorNum = (n) => Math.floor(Math.random() * n)
const genratorObj = () => {
	const config = {
		id: genratorNum(1000),
		name: '张三',
		sex: ['男', '女'],
		date: '1990年03月01日',
		fourColumns: '甲乙丙丁戊己庚辛',
		relation: ['家人', '朋友', '同事', '同学', '其他'],
		dateType: ['阳历', '阴历'],
		feedback: '反馈',
		comment: '点评'

	}
	config.sex = config.sex[genratorNum(2)]
	config.relation = config.relation[genratorNum(5)]
	config.dateType = config.dateType[genratorNum(2)]
	return config
}
const genratorData = () => new Array(genratorNum(10)).fill(null).map(item => genratorObj())

let indexList = new Array(26)
indexList = indexList.fill('').map((v, i) => {
	const names = String.fromCharCode(65 + i)
	let lists = new Array(genratorNum(10))
	lists = lists.fill('').map(() => genratorObj())
	return {
		names,
		lists
	}
})
let lists = new Array(genratorNum(10))
lists = lists.fill('').map(() => genratorObj())
indexList.push({
	names: '#',
	lists
})
console.log('indexList',indexList);
export default indexList
